package com.ldzg.blockwatcher.notify.strategy.impl;

import com.ldzg.blockwatcher.notify.enums.NotifySourceEnum;
import com.ldzg.blockwatcher.notify.strategy.NotifyStrategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author zhangyinhang
 * 日志通知
 */
@Slf4j
@Service("log")
public class LogNotifyStrategy implements NotifyStrategy {
    @Override
    public void warningAddress(NotifySourceEnum notifySourceEnum, String address) {
        log.info("监测到地址可能被添加到黑名单#来源{}#目标地址:{}",notifySourceEnum.getValue(), address);
    }

    @Override
    public void freezeAddress(NotifySourceEnum notifySourceEnum, String address) {
        log.info("监测到地址已经添加到黑名单#来源:{}#目标地址:{}", notifySourceEnum.getValue(), address);
    }
}
